function Connect(){
	document.getElementById('loadingMessage').innerHTML="W3Schools";
	var MongoClient = require('mongodb').MongoClient
	, format = require('util').format;
	document.getElementById('loadingMessage').innerHTML="W3Schools2";
	MongoClient.connect('mongodb://192.168.137.1:27017/location', function(err, db) {
		if(err) throw err;
		var collection = db.collection('university');
	    collection.insert({a:2}, function(err, docs) {
	    	collection.count(function(err, count) {
	    		console.log(format("count = %s", count));
	    		});
	    	//Locate all the entries using find
	    	collection.find().toArray(function(err, results) {
	    		console.dir(results);
	    		// Let's close the db
	    		db.close();
	    		});
	    	});
	    });
	    
	

	
}


			

				
		  
		

	
			